package ptaTest6;

import java.util.Scanner;

public class Test651 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		int[] arr = new int[5];
		while (sc.hasNext()) {
			try {
				String str = sc.next();
				if (str.equals("arr")) {
					int index = sc.nextInt();
					arr[index] = 1;
				} else if (str.equals("null")) {
					String a=null;
					a.length();
				} else if (str.equals("cast")) {
					Object o = new String("str");
					Integer x = (Integer) o;
				} else if (str.equals("num")) {
					String num = sc.next();
					Integer.parseInt(num);
				} else {
					break;
				}
			} catch (Exception e) {
				System.out.println(e);
			}
		}
		sc.close();
	}

}
